package com.hwua.service.Impl;

import com.hwua.dao.IOrderDao;
import com.hwua.dao.Impl.OrderDaoImpl;
import com.hwua.entity.Order;
import com.hwua.service.IOrderServcie;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: create by  Raphaelkxy
 * @version: v1.0
 * @description: com.hwua.service.Impl
 * @date:2019/9/2
 */
public class OrderServiceImpl implements IOrderServcie {


    private IOrderDao orderDao = new OrderDaoImpl();
    @Override
    public List<Order> selectByUid(int uid) throws SQLException {
        return orderDao.selectOrderByuid(uid);
    }

    @Override
    public int insertOrder(Order order) throws SQLException {
        return orderDao.insertOrder(order);
    }
}
